package com.vv.servcieplus2.interceptor;

import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

/**
 * @author kw
 * @program cloud-plus2
 * @description
 * @create 2024 - 12 - 27 18:13
 **/
//@Configuration
public class WevMvcConfigureInterceptor implements WebMvcConfigurer {
    @Override
    public void addInterceptors(InterceptorRegistry registry) {
        registry.addInterceptor(new GlobalReqInterceptor()).addPathPatterns("/**");
    }
}
